.class public Lcom/instagram/android/d/e/c;
.super Lcom/instagram/android/g/a;
.source "AutoUpdateRequest.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/g/a",
        "<",
        "Lcom/instagram/android/model/a;",
        ">;"
    }
.end annotation


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/android/d/j/a;)V
    .locals 1
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Landroid/support/v4/app/aj;",
            "Lcom/instagram/android/d/j/a",
            "<",
            "Lcom/instagram/android/model/a;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 35
    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0, p3}, Lcom/instagram/android/g/a;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/a;)V

    .line 36
    return-void
.end method


# virtual methods
.method public a(Lcom/instagram/android/d/j/j;)Lcom/instagram/android/model/a;
    .locals 4
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<",
            "Lcom/instagram/android/model/a;",
            ">;)",
            "Lcom/instagram/android/model/a;"
        }
    .end annotation

    .prologue
    .line 52
    new-instance v1, Lcom/instagram/android/model/a;

    invoke-direct {v1}, Lcom/instagram/android/model/a;-><init>()V

    .line 54
    invoke-static {}, Lcom/instagram/i/a;->a()Lcom/instagram/i/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/i/b;->b()Ljava/lang/String;

    move-result-object v0

    .line 55
    invoke-virtual {p1}, Lcom/instagram/android/d/j/j;->l()Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v2

    .line 56
    const-string v3, "client_config"

    invoke-virtual {v2, v3}, Lcom/fasterxml/jackson/databind/JsonNode;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    const-string v3, "client_config"

    invoke-virtual {v2, v3}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v3

    invoke-virtual {v3, v0}, Lcom/fasterxml/jackson/databind/JsonNode;->has(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1

    :cond_0
    move-object v0, v1

    .line 69
    :goto_0
    return-object v0

    .line 59
    :cond_1
    const-string v3, "client_config"

    invoke-virtual {v2, v3}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/fasterxml/jackson/databind/JsonNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v0

    .line 60
    invoke-static {}, Lcom/instagram/android/service/f;->a()Lcom/instagram/android/service/f;

    move-result-object v2

    .line 61
    sget-object v3, Lcom/fasterxml/jackson/databind/PropertyNamingStrategy;->CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES:Lcom/fasterxml/jackson/databind/PropertyNamingStrategy;

    invoke-virtual {v2, v3}, Lcom/instagram/android/service/f;->setPropertyNamingStrategy(Lcom/fasterxml/jackson/databind/PropertyNamingStrategy;)Lcom/fasterxml/jackson/databind/ObjectMapper;

    .line 64
    :try_start_0
    invoke-virtual {v2, v0}, Lcom/instagram/android/service/f;->treeAsTokens(Lcom/fasterxml/jackson/a/v;)Lcom/fasterxml/jackson/a/l;

    move-result-object v0

    new-instance v3, Lcom/instagram/android/d/e/d;

    invoke-direct {v3, p0}, Lcom/instagram/android/d/e/d;-><init>(Lcom/instagram/android/d/e/c;)V

    invoke-virtual {v2, v0, v3}, Lcom/instagram/android/service/f;->readValue(Lcom/fasterxml/jackson/a/l;Lcom/fasterxml/jackson/a/f/b;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/a;
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 66
    :catch_0
    move-exception v0

    move-object v0, v1

    goto :goto_0
.end method

.method protected a(Lcom/instagram/android/d/b/c;)V
    .locals 2
    .parameter

    .prologue
    .line 40
    invoke-super {p0, p1}, Lcom/instagram/android/g/a;->a(Lcom/instagram/android/d/b/c;)V

    .line 41
    const-string v0, "fields"

    const-string v1, "client_config"

    invoke-virtual {p1, v0, v1}, Lcom/instagram/android/d/b/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 42
    return-void
.end method

.method public synthetic b(Lcom/instagram/android/d/j/j;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 27
    invoke-virtual {p0, p1}, Lcom/instagram/android/d/e/c;->a(Lcom/instagram/android/d/j/j;)Lcom/instagram/android/model/a;

    move-result-object v0

    return-object v0
.end method

.method protected d()Ljava/lang/String;
    .locals 1

    .prologue
    .line 46
    const-string v0, "app"

    return-object v0
.end method
